<?php
// View for admin - feedback
require_once WACT_ROOT . 'controller/controller.inc.php';
require_once WACT_ROOT . 'controller/form.inc.php';
require_once WACT_ROOT . 'view/view.inc.php';
require_once WACT_ROOT . 'view/formview.inc.php';

require_once APP_ROOT . 'view/common/layout.formview.php';
require_once APP_ROOT . 'view/common/layout.view.php';

require_once 'model/common/user.php';
require_once 'model/common/article.php';
require_once 'model/common/categories.php';
require_once 'model/common/date.php';
require_once 'model/common/form.php';


class FeedbackFieldsView extends LayoutFormView {

    function FeedbackFieldsView($TemplateFile) {
        parent :: LayoutFormView($TemplateFile);
    }

    function prepare(&$controller, &$request, &$responseModel) {
    	parent::prepare($controller, $request, $responseModel);

		        
		$this->Template->set('SITE_CSS',Site::getSiteTemplateCSS());
		$this->Template->set('SITE_BASE',Site::getSiteTemplateBase());
		$this->Template->set('SITE_TITLE',Site::getTitle());
 

    	$submission_id =$responseModel->get('submission_id');
    	//print 'Prepare'.$submission_id;

        $fields =& SubmissionForm::getFeedbackFields($submission_id);
        //print_r($fields);
        $this->Template->setChildDataSource('List', $fields);

        $user_show = User::getFullUserName($responseModel);
        $responseModel->set('user_show', $user_show);


    }

}






?>